{include file="public/layout.htm" /}
<script type="text/javascript" src="__SKIN__/js/clipboard.min.js"></script>
<body class="back-c">
    <div class="ey-content">
        <div class="ey-header">
            <div class="ey-header-status">
                <div class="header-status-l">
                    <a href="{:weapp_url('Mbackend/Mbackend/index')}"><i class="iconfont icon-left"></i></a>
                </div>
                <div class="header-status-m">
                    商品管理
                </div>
                <div class="header-status-r">
                    <div class="choose">
                        <a href="javascript:void(0);" onclick="openFilter();">筛选</a>
                    </div>
                </div>
            </div>
            <div class="tab-block-lin-height"></div>
            <div class="tab-block prc-tab-block">
                <div class="scroll tab-wrap">
                    <div class="ey-scroll-view">
                        <div class="ey-scroll-view-x">
                            <div class="ey-scroll-view-content">
                                <a href='{:weapp_url("Mbackend/ShopProduct/index", ["query"=>1])}' class='tab-item {eq name="$Request.param.query" value="1"}active{/eq}'> 出售中 </a>
                                <a href='{:weapp_url("Mbackend/ShopProduct/index", ["query"=>2])}' class='tab-item {eq name="$Request.param.query" value="2"}active{/eq}'> 仓库中 </a>
                                <a href='{:weapp_url("Mbackend/ShopProduct/index", ["query"=>3])}' class='tab-item {eq name="$Request.param.query" value="3"}active{/eq}'> 库存预警 </a>
                                <a href='{:weapp_url("Mbackend/ShopProduct/index", ["query"=>4])}' class='tab-item {eq name="$Request.param.query" value="4"}active{/eq}'> 回收站 </a>
                                
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="tab-block-lin-height"></div>
        </div>
        <div class="ey-header-lin-height"></div>
        
        <div class="order-list-wrap">
            <div class="ey-drawer screen-wrap ey-drawer-visible ey-drawer-right" id="openFilter" style="display: none;">
                <div class="ey-drawer-mask" onclick="closeFilter();"></div>
                <div class="ey-drawer-content">
                    <div class="title color-tip">
                        <div class="title-fl">筛选</div> 
                        <div onclick="closeFilter();"><i class="iconfont icon-guanbi"></i></div>
                    </div>
                    <div class="ey-scroll-con">
                        <div class="ey-scroll-view" style="overflow: auto;">
                            <div class="ey-scroll-view-content">
                                <div class="search-wrap">
                                    <div class="search-input-inner">
                                    <form action="{:weapp_url('Mbackend/ShopProduct/index')}" method="get" onsubmit="layerLoading();" style="display: unset;">
                                        {$searchform.hidden|default=''}
                                        <input type="hidden" id="query" name="query" value="{$param.query}">
                                        <div class="ey-input-group">
                                            <input type="text" class="ey-input-inner" name="title" id="title" value="{$param.title}" placeholder="搜索商品名称...">
                                            <div class="ey-input-group-append">
                                                <button type="submit" class="ey-button"> <i class="iconfont icon-sousuo"></i> </button>
                                            </div>
                                        </div>
                                    </form>
                                    </div>
                                </div>
                                <form id="formFilter" action="{:weapp_url('Mbackend/ShopProduct/index')}" method="get" onsubmit="layerLoading();" style="display: unset;">
                                {$searchform.hidden|default=''}
                                <input type="hidden" id="query" name="query" value="{$param.query}">
                                <div class="item-wrap">
                                    <div class="label"> <span>商品销量</span> </div>
                                    <div class="value-wrap value-wrap-x">
                                        <div class="picker">
                                            <input class="ey-input" type="text" name="sales_num1" autocomplete="off" {notempty name="$param.sales_num1"} value="{$param.sales_num1}" {/notempty} class="qsbox" placeholder="最小值" onkeyup="this.value=this.value.replace(/\D/g,'')">
                                        </div>
                                        <div class="h-line"></div>
                                        <div class="picker">
                                            <input class="ey-input" type="text" name="sales_num2" autocomplete="off" {notempty name="$param.sales_num2"} value="{$param.sales_num2}" {/notempty} class="qsbox" placeholder="最大值" onkeyup="this.value=this.value.replace(/\D/g,'')">
                                        </div>
                                    </div>
                                </div>
                                <div class="item-wrap">
                                    <div class="label"> <span>商品价格</span> </div>
                                    <div class="value-wrap value-wrap-x">
                                        <div class="picker">
                                            <input class="ey-input" type="text" name="users_price1" autocomplete="off" {notempty name="$param.users_price1"} value="{$param.users_price1}" {/notempty} class="qsbox" placeholder="最小值" onkeyup="this.value=this.value.replace(/\D/g,'')">
                                        </div>
                                        <div class="h-line"></div>
                                        <div class="picker">
                                            <input class="ey-input" type="text" name="users_price2" autocomplete="off" {notempty name="$param.users_price2"} value="{$param.users_price2}" {/notempty} class="qsbox" placeholder="最大值" onkeyup="this.value=this.value.replace(/\D/g,'')">
                                        </div>
                                    </div>
                                </div>
                                <div class="item-wrap">
                                    <div class="label"> <span>创建时间</span> </div>
                                    <div class="value-wrap">
                                        <div class="picker">
                                            <div class="ey-input">
                                                <input type="text" name="add_time_begin" id="add_time_begin" autocomplete="off" value="{$Request.param.add_time_begin}" placeholder="起始日期"  style="text-align: right; width: 80px;margin-right: 5px;border: none;"/>
                                            </div>
                                        </div>
                                        <div class="h-line"></div>
                                        <div class="picker">
                                            <div class="ey-input">
                                                <input type="text" name="add_time_end" id="add_time_end" autocomplete="off" value="{$Request.param.add_time_end}" placeholder="结束日期" style="width: 80px;margin-left: 5px;border: none;"/>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                </form>
                            </div>
                        </div>
                    </div>
                    <div class="footer">
                        <button class="" type="default" onclick="unifiedJump(this);" data-url="{:weapp_url('Mbackend/ShopProduct/index')}">重置</button>
                        <button class="" type="primary" onclick="submitFilter();">确定</button>
                    </div>
                </div>
            </div>
        </div>
        <div class="mescroll-ey-warp list-wrap" style="margin-bottom: 4rem;">
            <div class="mescroll-ey mescroll-ey-fixed list-prc">
                <div class="ey-scroll-view">
                    <div class="ey-scroll-view-content">
                        <div class="mescroll-ey-content">
                            {empty name="list"}
                            <div class="null-data-con">
                                <div class="blank"></div>
                                <div class="null-data-box">
                                    <div class="null-data">
                                        <img src="__WEAPP_TEMPLATE__/skin/images/null-data.png">
                                    </div>
                                </div>
                            </div>
                            {else/}
                            <!-- 列表数据 -->
                            {include file="shop_product/list.htm" /}
                            <span id="unifiedAjaxAppendList"></span>
                            {/empty}
                        </div>
                        <!-- 列表分页 -->
                        {include file="public/page.htm" /}
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript" src="__WEAPP_TEMPLATE__/skin/js/shop_product.js?v={$weappInfo.version|default='v1.0.0'}"></script>
</body>
{include file="public/footer.htm" /}